import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_map/plugin_api.dart';
import 'package:leaflet_geo_fence_app/plugin/animatepolyline/animate_polyline_layer.dart';
import './animate_polyline_options.dart';
///@className animate_polyline_plugin
///@author liaoyu
///@version 1.0.0
///@description 带动画的polyline
///@createTime 2021/1/8 10:39
class AnimatePolylinePlugin extends MapPlugin {

  @override
  Widget createLayer(LayerOptions options, MapState mapState, Stream<Null> stream) {
    return AnimatePolylineLayer(options: options,mapState: mapState,stream: stream);
  }

  @override
  bool supportsLayer(LayerOptions options) {
   return options is AnimatePolylineOptions;
  }

}